﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CanDoo.Core;
using CanDoo.Data;
using CanDoo.Contracts;
using CanDoo.Oil.Core.Models;
using CanDoo.Oil.Core.DTOs;
using CanDoo.Core.Data;

namespace CanDoo.Oil.Core.Contracts
{
    /// <summary>
    /// 业务契约——采购结算单
    /// </summary>
    public interface IBuyStatementContract : IServiceBaseCore<BuyStatement>, IServiceBase<BuyStatement>
    {
        /// <summary>
        /// 生成新单据号
        /// </summary>
        /// <returns></returns>
        string GetNewCode();

        /// <summary>
        /// 数据转换为列表显示的格式
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        StatementDetailItem EntityChange(BuyStatementDetail m);
    }
}

